const express=require('express')
const app=express()
const cors=require('cors')
const path=require('path')

app.use(cors())
app.use(express.static(path.join(__dirname,'/dist')));
app.get('/',(req,res)=>{
    // res.send("nihao")
    res.sendFile(__dirname+'/dist/index.html')
})

app.listen(80,()=>{
    console.log('监听端口:8080');
})